# -*- coding: utf-8 -*-
# @Author : HaleShi
# @Time : 2023-05-19
# @File : 0_hook_newSign.py

import frida
import sys

rdev = frida.get_remote_device()
session = rdev.attach("得物")

scr = """
Java.perform(function () {
    var WelcomeActivity = Java.use("com.shizhuang.duapp.modules.home.ui.WelcomeActivity");
    WelcomeActivity.b.implementation = function(){
        console.log("-----------------来了----------------");
    };
    
});

"""
script = session.create_script(scr)


def on_message(message, data):
    print(message, data)


script.on("message", on_message)

script.load()
sys.stdin.read()
